﻿namespace Modbus
{
	/// <summary>
	/// 
	/// </summary>
	public sealed class CommEventCounter
	{
		private readonly short status;
		private readonly int   eventCount;

		/// <summary>
		/// 
		/// </summary>
		/// <param name="status"></param>
		/// <param name="eventCount"></param>
		public CommEventCounter(short status, int eventCount)
		{
			this.status = status;
			this.eventCount = eventCount;
		}

		/// <summary>
		/// 
		/// </summary>
		/// <value></value>
		public short Status
		{
			get { return this.status; }
		}

		/// <summary>
		/// 
		/// </summary>
		/// <value></value>
		public int EventCount
		{
			get { return this.eventCount; }
		}
	}
}
